# !/usr/bin/env python
# coding=utf-8
# @Time    : 2018/1/8 14:32
# @Author  : 6imensiva
# @Site    : https://gitee.com/dimensiva/wx_server_prototype.git
# @File    : pingpp_callback.py
# @Software: PyCharm
# @Version: 3.5.4
from flask import request
from configs import current_config
from . import api
from utils import my_request


@api.route(current_config.API_PREFIX + '/pingpp_callback', methods=['POST'])
def handle_pingpp_callback():
	data = request.get_json()
	#todo 验证 Webhooks 签名（可选）
	my_request.my_request5('POST', current_config.PING_PAY_CALLBACK_URL, data)
	return ''